﻿<%@ Page Title="Cadastrar Aluno" Language="C#" MasterPageFile="~/Index.master" AutoEventWireup="true" CodeBehind="CadastraAluno.aspx.cs" Inherits="Gacn.ControleAlunos.WebApplication.CadastraAluno" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
<script type="text/javascript">

    jQuery(function () {
        jQuery('ul.sf-menu').superfish();
    });

    //Funcao padrao, caso queira executar algo no onLoad da página
    function inicializarPagina() {
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Miolo" runat="server">
<div class="grid_12">
             
   
   <h3>Cadastro de Novo Aluno</h3>
   
   <p>Cadastrar novo aluno no sistema de presenca. Essas informacoes podem ser alteradas<br />
   <label id="throwErrorToUser" class="reqiredField" runat="server" />
   <label id="lblSucesso" style="color:Green" runat="server" />
   </p>
   
   <!-- INICIO NOVO USUARIO WRAPPER -->
   <div id="novousuariowrapper">
   
   		<form action="" method="post" enctype="multipart/form-data" runat="server">
   		
   			<table width="100%">
   			    <tr>
   					    <td><label class="reqiredField" >Nome Completo:</label></td>
   					    <td><label class="reqiredField">Sexo</label></td>
   					    <td><label class="reqiredField">Turma:</label></td>
   			    </tr>
   			    <tr>
   				    <td><asp:TextBox runat="server" id="alunoNomeCompleto" type="text" class="text big" 
                            MaxLength="160" /></td>
   				    <td>
                    <asp:DropDownList ID="cboSexo" class="select" runat="server">
                        <asp:ListItem Text="Selecione..." Value="" />
                        <asp:ListItem Text="Feminino" Value="F" />
                        <asp:ListItem Text="Masculino" Value="M" />
                    </asp:DropDownList>
   				    </td>
   				    <td>
                        <asp:DropDownList ID="cboTurma" class="select" runat="server">
                            <asp:ListItem Text="Selecione..." Value="" />
                        </asp:DropDownList>
                    </td>
   			    </tr>
   			    <tr>
   				    <td>
   					    <label>Número do Sapato:</label>
   				    </td>
   				    <td>
       				    <!-- Precisa validar pra ver se e data de nascimento ou idade -->
   					    <label>Roupa (Camisa):</label>
   				    </td>
   				    <td>
   					    <label>Roupa (Calça):</label>
   				    </td>
   			    </tr>
   			    <tr>
   				    <td>
                        <asp:TextBox runat="server" id="alunoSapato" type="text" class="text big" 
                            MaxLength="2"/>
   				    </td>
   				    <td>
   					    <asp:TextBox runat="server" id="alunoCamisa" type="text" class="text big" 
                            MaxLength="2"/>
   				    </td>
   				    <td>
   					    <asp:TextBox runat="server" id="alunoCalca" type="text" class="text big" 
                            MaxLength="2"/>
   				    </td>
   			    </tr>
   			    <tr>
   				    <td>
                        <label>Idade</label></td>
   				    <td><label>Registro de Aluno (RA):</label></td>
				    <td><label>Observação:</label></td>
   			    </tr>
   			    <tr>
   				    <td>
                    
   					    <asp:TextBox runat="server" id="alunoIdade" type="text" class="text big" />
   				    </td>
   				    <td>
   					    <asp:TextBox runat="server" id="alunoRA" type="text" class="text big" 
                            MaxLength="20" />
   				    </td>
  				    <td>
   					    <asp:TextBox runat="server" id="alunoObs" type="text" class="text big" 
                            MaxLength="2000" />
   				    </td>
   			    </tr>
                <tr>
   				    <td><label>Telefone 1:</label></td>
   				    <td><label>Telefone 2:</label></td>
				    <td><label>Série</label></td>
   			    </tr>
   			    <tr>
   				    <td>
   					    <asp:TextBox runat="server" id="telAluno1" type="text" class="text big" 
                            MaxLength="12" />
   				    </td>
   				    <td>
   					    <asp:TextBox runat="server" id="telAluno2" type="text" class="text big" 
                            MaxLength="12"/>
   				    </td>
                    <td>
                        <asp:TextBox runat="server" id="alunoSerie" type="text" class="text big" 
                            MaxLength="5"/>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><asp:Button ID="cadastrar" Text="Cadastrar" CssClass="submit" runat="server" 
                            onclick="cadastrar_Click" /></td>
                </tr>
   		    </table>
      		
            <asp:TextBox ID="txtResultado"
                    runat="server"
                    TextMode="MultiLine"
                    Width="100%" Visible="False" Rows="10" />
   		</form>
   		
   </div> <!-- FIM NOVO USUARIO WRAPPER -->  
	</div>
	<!-- FIM NOVO USUARIO WRAPPER -->
    </label>
    </label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SetCurrentPage" runat="server">
    <script type="text/javascript">
    </script>
</asp:Content>
